// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.geeke.entity.base.EntityBase;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperTable;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统微信支付表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_wechat_pay")
@SuperTable(value = "系统微信支付表", isSystem = true)
public class SysWechatPay extends EntityBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "微信商户号")
    private String merchantId;

    @SuperColumn(value = "服务商AppId")
    private String appId;

    @SuperColumn(value = "商户订单号")
    private String outTradeNumber;

    @SuperColumn(value = "支付订单号")
    private String transactionId;

    @SuperColumn(value = "交易类型", nullable = true)
    private String tradeType;

    @SuperColumn(value = "交易状态", nullable = true)
    private String tradeState;

    @SuperColumn(value = "交易状态描述", nullable = true)
    private String tradeStateDescription;

    @SuperColumn(value = "付款银行类型", nullable = true)
    private String bankType;

    @SuperColumn(value = "订单总金额")
    private Integer total;

    @SuperColumn(value = "用户支付金额", nullable = true)
    private Integer payerTotal;

    @SuperColumn(value = "支付完成时间", nullable = true)
    private LocalDateTime successTime;

    @SuperColumn(value = "交易结束时间", nullable = true)
    private LocalDateTime expireTime;

    @SuperColumn(value = "商品描述", nullable = true)
    private String description;

    @SuperColumn(value = "场景信息", nullable = true)
    private String scene;

    @SuperColumn(value = "附加数据", nullable = true)
    private String attachment;

    @SuperColumn(value = "优惠标记", nullable = true)
    private String goodsTag;

    @SuperColumn(value = "结算信息", nullable = true)
    private String settlement;

    @SuperColumn(value = "回调通知地址", nullable = true)
    private String notifyUrl;

    @SuperColumn(value = "微信OpenId标识", nullable = true)
    private String openId;

    @SuperColumn(value = "子商户号", nullable = true)
    private String subMerchantId;

    @SuperColumn(value = "回调通知地址", nullable = true)
    private String subAppId;

    @SuperColumn(value = "子商户唯一标识", nullable = true)
    private String subOpenId;

    @JsonIgnore
    @JsonIgnoreProperties
    @TableField(exist = false)
    private SysWechatUser sysWechatUser;
}
